package com.woniuxy.dao;

import com.woniuxy.pojo.*;

import java.util.List;

public interface RepairRecordMapper {
    /**
     * 查询所有维修记录及搜索
     * @param repairRecord
     * @return
     */
    public List<RepairRecord> selectRepairRecordsByProperty(RepairRecord repairRecord);

    public List<Car> selectAllCarById(int id);
    public List<Car> selectAllCars();
    public List<User> selectAllUsers();
    public List<User> selectAllUserById(int id);

    /**
     * 根据id查维修厂
     * @param id
     * @return
     */
    public List<CurrentUnit> selectAllRepairById(int id);

    /**
     * 查询所有维修厂
     * @return
     */
    public List<CurrentUnit> selectAllRepair();

    /**
     * 根据id维修类型
     * @param id
     * @return
     */
    public  List<Dictionary> selectAllRepairTypeById(int id);

    /**
     * 所有维修类型
     * @return
     */
    public List<Dictionary> selectAllRepairType();

    /**
     * 删除维修数据
     * @param id
     */
    public void deleteRepairRecordById(int id);

    /**
     * 增加维修记录
     * @param
     * @return
     */
    public int insertRepairRecord(RepairRecord repairRecord);

    /**
     * 修改维修记录
     * @param
     * @return
     */
    public int updataRepairRecord(RepairRecord repairRecord);
}
